package com.ttn.common.core.entity.business.converter;

import com.ttn.common.core.entity.business.CourseUnit;
import com.ttn.common.core.entity.business.vo.CourseUnitVO;
import com.ttn.common.core.entity.studentrecord.vo.LearningProgressDetailsVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface CourseUnitConverter {
    CourseUnitConverter INSTANCE = Mappers.getMapper(CourseUnitConverter.class);

    CourseUnitVO CourseUnit2VO(CourseUnit courseUnit);

    LearningProgressDetailsVO CourseUnit2LearningProgressDetailsVO(CourseUnit courseUnit);

    List<LearningProgressDetailsVO> CourseUnit2LearningProgressDetailsVOList(List<CourseUnit> courseUnitList);

}
